package com.xiaominfo.oss.sync;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lien
 * @Date 2019/12/24 16:48
 * @Description 节点对象
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Node {

    /**
     * 端口
     */
    private int port;

    /**
     * ip地址
     */
    private String ip;


    @Override
    public String toString() {
        return ip + ":" + port;
    }
}
